package com.mis.pos.entity;

import com.mis.pos.base.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description 库存信息实体
 * @Author yuxiang
 * @CreatedDate 2019/10/30 16:44
 */
@Entity
@Table(name = "inventory")
@Data
public class InventoryEntity extends BaseEntity implements Serializable {
    /**
     * 商品id
     */
    private Long itemId;

    /**
     * 数量
     */
    private Long amount;

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public InventoryEntity(){}

    public InventoryEntity(Long itemId, Long amount) {
        this.itemId = itemId;
        this.amount = amount;
    }
}
